<?php

require_once(ABSPATH . 'portal/main.php');

class Work extends Main {
	
	  function Work(){
	  	parent::Main();
	  	$this->database();
	  	
	  }
	  
	  function show($id){
	  	$work = $this->db->find_by_id('project',$id);
	  	$work['service_list'] = $this->db->find(
				'select s.name, s.url_name from service s, service_project sp where s.id=sp.service_id and sp.project_id=' . $id);
	  	$data = array(
	  		'work'=> $work 
	  	);
        
	  	$this->my_view("portal/work", $data);
	  }
}
?>